﻿{% extends "base_cn.html" %}
{% block title %} -- 喜爱的 {% endblock %}
{% block content %}

  <table borderColor=#cccccc cellSpacing=0 cellPadding=3 width="100%" bgColor=#ffffff border=2>
  {% if ShowUserName %}
	<td valign="top">
	    <p>&nbsp;{{ ShowUserName }}的喜爱<br></p>
	    {% include "like_show_name_cn.html" %}
	</td>

	<td valign="top">
	    {% include "like_show_cur_cn.html" %}
	</td>
  {% else %}

    {% if UserName %}
    <tr>
	{% ifequal Tag 'my' %}
	    <td valign="top">
		<p>&nbsp;我喜爱的<br></p>
		{% include "like_show_name_cn.html" %}
	    </td>

	    <td valign="top">
		{% include "like_show_cur_cn.html" %}
	    </td>
	{% else %}
      	    <td>&nbsp;我喜爱的</td>
      	    <td>
		{% for Item in MyLikes %}
		    <b><a href = "/like?tag=my&item={{ Item.key }}"><b>{{ Item.Title }}</b></a></b>
		{% endfor %}
      	    </td>
	{% endifequal %}
    </tr>

    <tr>
      <td>
	添加：
      </td>

      <td>
	<form action="/like_add" method="post" name="form-like">
		<div>标题：<input type="text" name="title" size="70"></input></div>
		<div>URL <font color=red>*</font>：<input type="text" name="url" size="70"></input></div>
		<div>标签  ：<input type="text" name="type" size="70"></input></div>
		<div>评论（最多200汉字）：<br><textarea name="commenton" rows="5" cols="60"></textarea></div>

		<input type="submit" value="提交"/>
	</form>
      </td>
    </tr>
 
    {% endif %}


    <tr>
	{% ifequal Tag 'syshot' %}
	    <td valign="top">
		<p>&nbsp;最受大家欢迎的<br></p>
		{% include "like_show_name_cn.html" %}
	    </td>

	    <td valign="top">
		{% include "like_show_cur_cn.html" %}
	    </td>
	{% else %}
      	    <td>&nbsp;最受大家欢迎的</td>
      	    <td>
		{% for Item in HotLikes %}
		    <b><a href = "/like?tag=syshot&item={{ Item.key }}"><b>{{ Item.Title }}</b></a></b>
		{% endfor %}
      	    </td>
	{% endifequal %}
    </tr>

    <tr>
	{% ifequal Tag 'sysnew' %}
	    <td valign="top">
		<p>&nbsp;最新大家喜爱的<br></p>
		{% include "like_show_name_cn.html" %}
	    </td>

	    <td valign="top">
		{% include "like_show_cur_cn.html" %}
	    </td>
	{% else %}
      	    <td>&nbsp;最新大家喜爱的</td>
      	    <td>
		{% for Item in NewLikes %}
		    <b><a href = "/like?tag=sysnew&item={{ Item.key }}"><b>{{ Item.Title }}</b></a></b>
		{% endfor %}
      	    </td>
	{% endifequal %}
    </tr>

  {% endif %}
  </table>

{% endblock %}